﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "parkingspaceinfo", DisableSyncStructure = true)]
	public partial class Parkingspaceinfo {

		/// <summary>
		/// 车位id，主键
		/// </summary>
		[JsonProperty, Column(Name = "pid", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Pid { get; set; }

		/// <summary>
		/// 创建日期
		/// </summary>
		[JsonProperty, Column(Name = "createtime", DbType = "datetime")]
		public DateTime? Createtime { get; set; }

		/// <summary>
		/// 是否删除
		/// </summary>
		[JsonProperty, Column(Name = "pdelete")]
		public bool? Pdelete { get; set; }

		/// <summary>
		/// 车位名称
		/// </summary>
		[JsonProperty, Column(Name = "pname", StringLength = 50)]
		public string Pname { get; set; }

		/// <summary>
		/// 车位编号
		/// </summary>
		[JsonProperty, Column(Name = "pnumber", StringLength = 50)]
		public string Pnumber { get; set; }

		/// <summary>
		/// 车位状态(0闲置、1使用中)
		/// </summary>
		[JsonProperty, Column(Name = "pstate")]
		public bool? Pstate { get; set; }

	}

}
